package Test;

/**
 * 科目
 * @author prairial
 */
public class Course implements Comparable<Course>{
	public static final int ErrorID = 0;	
	public static Course getCourse(int id){
		return null;
	}
	
	private int id;
	private String name;
	
	public Course(Course src){
		id = src.id;
		name = src.name;
	}
	
	public Course(int _courseID, String _name){
		id = _courseID;
		name = _name == null ? "" : _name;
	}
	
	@Override
	public String toString() {
		return name;
	}
	
	@Override
	public int compareTo(Course o) {
		return id - o.id;
	}
	
	public static void main(String args[]){
		System.out.println(Course.getCourse(0));
	}

	/** getters and setters */
	//------------------ start ---------------------
	public int getId() {
		return id;
	}

	/*
	public void setId(int id) {
		this.id = id;
	}*/

	public String getName() {
		return name;
	}

	/*
	public void setName(String name) {
		this.name = name;
	}*/
	//------------------ end ----------------------
}





